All Packages Class Hierarchy This Package Previous Next Index
compare(Object, Object)
message.
It * is a special case of function objects.
A predicate's compare()
always returns a boolean
whereas a function object's perform()
return
an Object
.
public class IsLess implements Predicate2 { public boolean compare(Object o1, Object o2) { return o1.equals(o2); } }
Copyright © 1996 Finn Bock
public abstract boolean compare(Object o1, Object o2)
All Packages Class Hierarchy This Package Previous Next Index